import request from '@/utils/request'

// 查询SchoolCashflow列表
export function listSchoolCashflow(query) {
  return request({
    url: '/api/v1/finance/cashflowList',
    method: 'get',
    params: query
  })
}

// 查询SchoolCashflow详细
export function getSchoolCashflow(cashflowId) {
  return request({
    url: '/api/v1/finance/cashflow/' + cashflowId,
    method: 'get'
  })
}

// 新增SchoolCashflow
export function addSchoolCashflow(data) {
  return request({
    url: '/api/v1/finance/cashflow',
    method: 'post',
    data: data
  })
}

// 修改SchoolCashflow
export function updateSchoolCashflow(data) {
  return request({
    url: '/api/v1/finance/cashflow',
    method: 'put',
    data: data
  })
}

// 删除SchoolCashflow
export function delSchoolCashflow(cashflowId) {
  return request({
    url: '/api/v1/finance/cashflow/' + cashflowId,
    method: 'delete'
  })
}
